/* ===== FOURTEEN BREATHING SYSTEM - COMPLETE STYLES ===== */

/* ===== VARIABLES ===== */
:root {
  --fourteen-primary-bg: #f5f4ed;
  --fourteen-secondary-bg: #ffc62f;
  --fourteen-font-color: #1e1e1e;
  --fourteen-gradient-1: linear-gradient(135deg, #ffebc4 0%, #ffebc4ad 100%);
  --fourteen-gradient-2: linear-gradient(
    45deg,
    #dfab46 40%,
    #dfb86d 40%,
    #dfab46 61%
  );
}

/* ===== MODAL OVERLAY ===== */
.fourteen-breathing-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
}

.fourteen-breathing-modal.active {
  display: flex;
}

/* ===== MODAL CONTENT ===== */
.fourteen-modal-content {
  background: var(--fourteen-gradient-1);
  border-radius: 30px;
  padding: 30px;
  max-width: 1400px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: fourteenSlideUp 0.5s ease-out;
  position: relative;
  border: 6px solid var(--fourteen-secondary-bg);
}

@keyframes fourteenSlideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== CLOSE BUTTON ===== */
.fourteen-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--fourteen-font-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-weight: bold;
}

.fourteen-modal-close:hover {
  transform: scale(1.1) rotate(90deg);
  background: #ff4444;
}

/* ===== MODAL HEADER ===== */
.fourteen-modal-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--fourteen-secondary-bg);
}

.fourteen-modal-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--fourteen-font-color);
  margin-bottom: 15px;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.fourteen-score-display {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--fourteen-secondary-bg);
  padding: 12px 25px;
  border-radius: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.fourteen-score-label {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: bold;
  color: var(--fourteen-font-color);
}

.fourteen-score-value {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 900;
  color: var(--fourteen-font-color);
}

/* ===== TAB NAVIGATION ===== */
.fourteen-tab-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.fourteen-tab-btn {
  background: white;
  border: 3px solid #ddd;
  padding: 15px 25px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fourteen-tab-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.fourteen-tab-btn.active {
  background: var(--fourteen-secondary-bg);
  border-color: var(--fourteen-font-color);
  transform: translateY(-3px);
}

.fourteen-tab-text {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: bold;
  color: var(--fourteen-font-color);
}

/* ===== TAB PANES ===== */
.fourteen-modal-body {
  background: var(--fourteen-primary-bg);
  border-radius: 20px;
  padding: var(--fs-12-24);
  min-height: 400px;
}

.fourteen-tab-pane {
  display: none;
  animation: fourteenFadeIn 0.4s ease-out;
}

.fourteen-tab-pane.active {
  display: block;
}

@keyframes fourteenFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== THEORY TAB - BREATHING ANIMATION ===== */
.fourteen-theory-content {
  width: 100%;
}

.fourteen-section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--fourteen-font-color);
  margin-bottom: 20px;
  text-align: center;
  font-weight: 900;
}

.fourteen-controls-panel {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.fourteen-control-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.fourteen-btn {
  padding: 12px 25px;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: bold;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.fourteen-btn-primary {
  background: linear-gradient(135deg, var(--primary-bg) 0%, #764ba2 100%);
  color: white;
}

.fourteen-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.fourteen-btn-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.fourteen-btn-secondary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

.fourteen-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.fourteen-view-toggle {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fourteen-view-btn {
  padding: 8px 15px;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  border: 2px solid var(--primary-bg);
  background: white;
  color: #1e1e1e;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.fourteen-view-btn.active {
  background: var(--primary-bg);
  color: #1e1e1e;
}

.fourteen-view-btn:hover {
  transform: scale(1.05);
}

.fourteen-speed-label {
  font-weight: bold;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.fourteen-speed-control {
  width: 80px;
}

.fourteen-speed-value {
  font-weight: bold;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.fourteen-main-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
}

.fourteen-body-section {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  min-height: fit-content;
}

.fourteen-breathing-status {
  text-align: center;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: bold;
  color: var(--primary-bg);
  margin-bottom: 20px;
  min-height: 40px;
}

.fourteen-body-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  /* height: 600px; */
  margin: 0 auto;
  transition: transform 0.3s ease;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ===== HEAD ===== */
.fourteen-head {
  position: absolute;
  width: 36%;
  height: 34%;
  left: 50%;
  top: 0%;
  transform: translateX(-50%);
  background: #fce4d6;
  border-radius: 50% 50% 45% 45%;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

/* ===== NOSE ===== */
.fourteen-nose {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translateX(-50%);
  width: 49%;
  height: 53%;
  opacity: 0.4;
  z-index: 20;
}

.fourteen-nostril {
  width: 10px;
  height: 15px;
  background: #d4a5a5;
  border-radius: 50%;
  position: absolute;
  top: 25px;
}

.fourteen-nostril-left {
  left: 5px;
}

.fourteen-nostril-right {
  right: 5px;
}

/* ===== TRACHEA ===== */
.fourteen-trachea {
  position: absolute;
  width: 8%;
  height: 24%;
  left: 50%;
  top: 26%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #b39ddb 0%, #9575cd 100%);
  border-radius: 12px;
  z-index: 5;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.fourteen-trachea-ring {
  position: absolute;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

/* ===== BRONCHI ===== */
.fourteen-bronchi {
  display: none !important;
  position: absolute;
  top: 290px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.fourteen-bronchus {
  position: absolute;
  width: 18px;
  height: 60px;
  background: linear-gradient(180deg, #9575cd 0%, #7e57c2 100%);
  border-radius: 9px;
}

.fourteen-bronchus-left {
  left: -40px;
  transform: rotate(-25deg);
  transform-origin: top center;
}

.fourteen-bronchus-right {
  right: -40px;
  transform: rotate(25deg);
  transform-origin: top center;
}

/* ===== LUNGS ===== */
.fourteen-lungs-container {
  position: absolute;
  left: 50%;
  top: 64%;
  transform: translate(-50%, -50%);
  width: 51%;
  height: 48%;
}

.fourteen-lung {
  position: absolute;
  border-radius: 50% 50% 45% 45%;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.fourteen-lung-left {
  left: 0;
  top: 0;
  width: 46%;
  height: 75%;
  background: linear-gradient(135deg, #ef9a9a 0%, #e57373 50%, #ef5350 100%);
  box-shadow: inset -10px -10px 30px rgba(0, 0, 0, 0.1),
    inset 10px 10px 30px rgba(255, 255, 255, 0.1),
    0 5px 20px rgba(239, 154, 154, 0.3);
  background-position-x: right !important;
}

.fourteen-lung-right {
  right: 0;
  top: 0;
  width: 46%;
  height: 75%;
  background: linear-gradient(135deg, #ef9a9a 0%, #e57373 50%, #ef5350 100%);
  box-shadow: inset -10px -10px 30px rgba(0, 0, 0, 0.1),
    inset 10px 10px 30px rgba(255, 255, 255, 0.1),
    0 5px 20px rgba(239, 154, 154, 0.3);
  background-position-x: left !important;
}

.fourteen-lung.breathing {
  background: linear-gradient(135deg, #f48fb1 0%, #ec407a 50%, #e91e63 100%);
  box-shadow: inset -10px -10px 30px rgba(0, 0, 0, 0.15),
    inset 10px 10px 30px rgba(255, 255, 255, 0.15),
    0 10px 30px rgba(233, 30, 99, 0.4);
}

.fourteen-lung-left.breathing {
  transform: scale(1.15);
}

.fourteen-lung-right.breathing {
  transform: scale(1.15);
}

/* ===== DIAPHRAGM ===== */
.fourteen-diaphragm {
  position: absolute;
  width: 61%;
  height: 23%;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  z-index: 3;
}

.fourteen-diaphragm-muscle {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #ffb74d 0%, #ffa726 100%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: 0 -5px 20px rgba(255, 183, 77, 0.3);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.fourteen-diaphragm-muscle.contracted {
  transform: translateY(30px) scaleY(0.7);
}

/* ===== RIBCAGE ===== */
.fourteen-ribcage {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 350px;
  z-index: 1;
}

.fourteen-rib {
  position: absolute;
  width: 160px;
  height: 25px;
  border: 3px solid rgba(200, 200, 200, 0.4);
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fourteen-ribcage.expanded .fourteen-rib {
  width: 180px;
  transform: translateX(-50%) scaleY(1.1);
}

/* ===== HEART ===== */
.fourteen-heart {
  position: absolute;
  left: 45%;
  top: 41%;
  width: 15%;
  height: 15%;
  z-index: 5;
}

.fourteen-heart-shape {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
  transform: rotate(45deg);
  border-radius: 50% 50% 0 50%;
  box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
  animation: fourteenHeartbeat 1.5s infinite;
}

@keyframes fourteenHeartbeat {
  0%,
  100% {
    transform: rotate(65deg) scale(1);
  }

  25% {
    transform: rotate(65deg) scale(1.1);
  }

  50% {
    transform: rotate(65deg) scale(1);
  }
}

/* ===== AIR PARTICLES ===== */
.fourteen-air-particle {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.fourteen-oxygen-particle {
  background: radial-gradient(circle, #4fc3f7 0%, #0288d1 100%);
  box-shadow: 0 0 15px rgba(79, 195, 247, 0.6);
}

.fourteen-co2-particle {
  background: radial-gradient(circle, #81c784 0%, #66bb6a 100%);
  box-shadow: 0 0 15px rgba(129, 199, 132, 0.6);
}

/* ===== ORGAN LABELS ===== */
.fourteen-organ-label {
  position: absolute;
  background: rgba(102, 126, 234, 0.9);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  font-weight: bold;
  pointer-events: none;
  z-index: 15;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fourteen-organ-label.visible {
  opacity: 1;
}

/* ===== ZOOM CONTROLS ===== */
.fourteen-zoom-controls {
  position: absolute;
  top: 65px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
}

.fourteen-zoom-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 1.3em;
  transition: all 0.3s ease;
  font-weight: bold;
}

.fourteen-zoom-btn:hover {
  background: var(--primary-bg);
  color: white;
  transform: scale(1.1);
}

/* ===== INFO PANEL ===== */
.fourteen-info-panel {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-height: 700px;
  overflow-y: auto;
}

.fourteen-stats-box {
  background: var(--primary-bg);
  color: #1e1e1e;
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 20px;
}

.fourteen-stats-box h3 {
  margin-bottom: 15px;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.fourteen-stat-item {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}

.fourteen-stat-value {
  font-weight: bold;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}

.fourteen-info-section {
  margin: 20px 0;
}

.fourteen-info-section h3 {
  color: var(--primary-bg);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 10px;
  font-weight: 800;
}

.fourteen-info-section p {
  color: #555;
  line-height: 1.6;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.fourteen-fact-box {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  padding: 15px;
  border-radius: 10px;
  margin: 10px 0;
}

.fourteen-fact-box h4 {
  color: #f57c00;
  margin-bottom: 8px;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  font-weight: 800;
}

.fourteen-fact-box p {
  color: #5d4037;
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  line-height: 1.5;
}

/* ===== QUIZ TAB ===== */
.fourteen-quiz-start,
.fourteen-quiz-question-screen,
.fourteen-quiz-result {
  padding: 20px;
}

.fourteen-quiz-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--fourteen-font-color);
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

.fourteen-quiz-intro {
  background: white;
  border-radius: 20px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fourteen-quiz-desc {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.fourteen-score-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.fourteen-score-item {
  background: var(--fourteen-gradient-1);
  padding: 15px 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fourteen-score-item .fourteen-score-label {
  display: block;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: #666;
  margin-bottom: 5px;
}

.fourteen-score-item .fourteen-score-value {
  display: block;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: bold;
  color: var(--fourteen-font-color);
}

.fourteen-quiz-header {
  margin-bottom: 25px;
}

.fourteen-question-number {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--fourteen-font-color);
  margin-bottom: 15px;
  text-align: center;
  font-weight: 800;
}

.fourteen-progress-bar {
  background: #ddd;
  height: 15px;
  border-radius: 10px;
  overflow: hidden;
}

.fourteen-progress-fill {
  background: var(--fourteen-secondary-bg);
  height: 100%;
  transition: width 0.5s ease;
  border-radius: 10px;
}

.fourteen-question-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin: 25px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fourteen-question-text {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: bold;
  color: var(--fourteen-font-color);
  line-height: 1.5;
  text-align: center;
}

.fourteen-options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 25px 0;
}

.fourteen-quiz-option {
  background: white;
  border: 3px solid #ddd;
  padding: 20px;
  border-radius: 15px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: bold;
  color: var(--fourteen-font-color);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fourteen-quiz-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--fourteen-secondary-bg);
}

.fourteen-quiz-option.fourteen-selected {
  background: var(--fourteen-secondary-bg);
  border-color: var(--fourteen-font-color);
  transform: translateY(-3px);
}

.fourteen-result-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--fourteen-font-color);
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.fourteen-result-score-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin: 25px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.fourteen-result-main-score {
  text-align: center;
}

.fourteen-result-score-number {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--fourteen-secondary-bg);
  line-height: 1;
}

.fourteen-result-score-total {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #666;
}

.fourteen-result-percentage {
  width: 150px;
  height: 150px;
}

.fourteen-circular-progress {
  width: 100%;
  height: 100%;
}

.fourteen-circular-progress svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.fourteen-score-details {
  background: var(--fourteen-gradient-1);
  border-radius: 20px;
  padding: 25px;
  margin: 25px 0;
}

.fourteen-score-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.fourteen-score-detail-item:last-child {
  border-bottom: none;
}

.fourteen-detail-label {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #666;
}

.fourteen-detail-value {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: bold;
  color: var(--fourteen-font-color);
}

.fourteen-improvement-badge {
  background: #4caf50;
  color: white;
  padding: 15px 25px;
  border-radius: 15px;
  text-align: center;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: bold;
  margin-top: 15px;
  animation: fourteenPulse 2s infinite;
}

@keyframes fourteenPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.fourteen-saved-message {
  background: #4caf50;
  color: white;
  padding: 15px 25px;
  border-radius: 15px;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: bold;
  margin: 20px 0;
}

.fourteen-quiz-review {
  margin: 30px 0;
}

.fourteen-review-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--fourteen-font-color);
  margin-bottom: 20px;
  text-align: center;
  padding-top: 20px;
  border-top: 3px solid #ddd;
  font-weight: 900;
}

.fourteen-review-table-wrapper {
  overflow-x: auto;
}

.fourteen-review-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fourteen-review-table thead {
  background: var(--fourteen-secondary-bg);
}

.fourteen-review-table th {
  padding: 15px;
  text-align: left;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--fourteen-font-color);
  font-weight: bold;
}

.fourteen-review-table td {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: #333;
}

.fourteen-review-table tr:last-child td {
  border-bottom: none;
}

.fourteen-correct-row {
  background: #e8f5e9;
}

.fourteen-wrong-row {
  background: #ffebee;
}

.fourteen-correct-answer-hint {
  display: block;
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  color: #4caf50;
  font-weight: bold;
  margin-top: 5px;
}

.fourteen-result-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 10px;
  font-weight: bold;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
}

.fourteen-badge-correct {
  background: #4caf50;
  color: white;
}

.fourteen-badge-wrong {
  background: #f44336;
  color: white;
}

/* ===== BUTTONS ===== */
.fourteen-btn-primary {
  background: var(--fourteen-font-color);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: block;
  margin: 20px auto;
}

.fourteen-btn-primary:hover:not(.fourteen-btn-disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  background: #333;
}

.fourteen-btn-primary.fourteen-btn-large {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  padding: 20px 50px;
}

.fourteen-btn-primary.fourteen-btn-disabled {
  background: #95a5a6;
  cursor: not-allowed;
  opacity: 0.6;
}

.fourteen-btn-secondary {
  background: #666;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: block;
  margin: 15px auto;
}

.fourteen-btn-secondary:hover {
  background: #555;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.3);
}

/* ===== CUSTOM SCROLLBAR ===== */
.fourteen-modal-content::-webkit-scrollbar {
  width: 12px;
}

.fourteen-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.fourteen-modal-content::-webkit-scrollbar-thumb {
  background: var(--fourteen-secondary-bg);
  border-radius: 10px;
}

.fourteen-modal-content::-webkit-scrollbar-thumb:hover {
  background: #e6b422;
}

.fourteen-info-panel::-webkit-scrollbar {
  width: 8px;
}

.fourteen-info-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.fourteen-info-panel::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}



/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .fourteen-main-content {
    grid-template-columns: 1fr;
  }

  .fourteen-body-container {
    /* height: 500px; */
  }
}

@media (max-width: 768px) {
  .fourteen-controls-panel {
    flex-direction: column;
  }

  .fourteen-modal-content {
    padding: 20px;
    border-radius: 20px;
  }

  .fourteen-tab-nav {
    flex-direction: row;
    justify-content: space-around;
  }

  .fourteen-tab-btn {
    min-width: 90px;
    padding: 12px 15px;
  }

  .fourteen-body-container {
    /* height: 450px; */
  }

  .fourteen-result-score-card {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .fourteen-body-container {
    max-width: 100%;
    height: auto;
    /* min-height: 400px; */
  }
}

@media (max-width: 480px) {
  
div#fourteenLabelTrachea,.fourteen-view-toggle .fourteen-view-btn:nth-child(2),#fourteenLabelNose,#fourteenLabelTrachea,#fourteenLabelLungLeft,#fourteenLabelLungRight,#fourteenLabelHeart,#fourteenLabelDiaphragm{
 display: none;
}
  .fourteen-modal-content {
    padding: 15px;
  }

  .fourteen-modal-header {
    margin-bottom: 20px;
  }

  .fourteen-tab-btn {
    min-width: 80px;
    padding: 10px 12px;
  }

  .fourteen-tab-text {
    font-size: 0.8rem;
  }

  .fourteen-review-table {
    font-size: 0.85rem;
  }

  .fourteen-review-table th,
  .fourteen-review-table td {
    padding: 10px 5px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
